package com.qf.quduba.dao;

import com.qf.quduba.entity.Books;
import com.qf.quduba.entity.Type;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;

/**
 * @author 17312
 * @time2020/10/1114:41
 */
public interface BookDAO {
    int updateHits(Integer bookId);
    List<Books> getHotBook();
    List<Books> getCollect();
    List<Books> getUpdate();
    List<Books> getCreattime();
    List<Books> getRenewal();
    List<Books> findHitsEnd();
    List<Books> getAllBooks();
    //修改收藏量
    int updateCollect(String bookId);
    //修改打赏量
    int updateReward(@Param("bookId") String bookId, @Param("newBookReward") double newBookReward);

    List<Books> getBooksData(Integer userId);
    int getAggregate(Integer userId);
    int addBook(Books books);

    int updateBook(Books books);

}
